x86/hvm: implicitly disable an ioreq server when it is destroyed
authorPaul Durrant <paul.durrant@citrix.com>
Fri, 24 Apr 2015 10:14:23 +0000 (12:14 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 24 Apr 2015 10:14:23 +0000 (12:14 +0200)
commitebd41901b96565b392e8d434a4c4ab543d5fb52b
tree8286895b223fb96b89bd4bef5ab78c0541185536
parentcb791b84e7c0adce14194647912c4c3d28cddc4a
x86/hvm: implicitly disable an ioreq server when it is destroyed

Currently, unless a (non-default) ioreq server is explicitly disabled before
being destroyed, its gmfns will not be placed back into the p2m but still
released back into the ioreq_gmfn mask. This is somewhat counter-intuitive
and easily remedied by this small patch.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/hvm/hvm.c